from datetime import datetime

from flask_sqlalchemy import SQLAlchemy

db=SQLAlchemy()

class User(db.Model):
    id=db.Column(db.Integer,primary_key=True,autoincrement=True,comment='ID')
    username=db.Column(db.String(32),comment='用户名')
    password=db.Column(db.String(32),comment='密码',default='666666')
    mobile=db.Column(db.String(11),comment='手机号',default='')
    img=db.Column(db.String(128),comment='头像',default='')
    create_time=db.Column(db.DateTime,default=datetime.now,comment='创建时间')
    login_time=db.Column(db.DateTime,default=datetime.now,comment='登录时间')
    money=db.Column(db.Integer,default=0,comment='账户余额')
